package com.tengju.data.infrastructure.persistence.mybatis.mapper.clickhouse.ods;

import com.tengju.data.domain.model.clickhouse.OdsMarketIndex;
import com.tengju.data.infrastructure.persistence.mybatis.dataobject.OdsMarketIndexDO;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;


/**
 * @Author: 李大仙
 * @Date: 2021/4/7 9:46 下午
 */
public interface OdsTengjuDataAchievementBounsLogDOMapper {

    int selectMarketIndexCount(@Param("idCode") long value,
                               @Param("month") Integer month);

    List<OdsMarketIndexDO> selectMarketIndexPage(@Param("idCode") Long idCode,
                                                 @Param("month") int month,
                                                 @Param("offset") int offset,
                                                 @Param("limit") int limit);

    BigDecimal getMarketIndexAchievementTotal(@Param("idCode") Long idCode,
                                              @Param("month") int month);
}
